package com.hotel.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author shkstart
 * @create 2021-06-26 15:40
 */
@Data
@Component
public class Room {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String photo;
    private String sn;
    private String roomTypeId;
    private Integer floorId;
    private Integer status;
    private String remark;

    public Room() {
    }

    public Room(Integer id, String photo, String sn, String roomTypeId, Integer floorId, Integer status, String remark) {
        this.id = id;
        this.photo = photo;
        this.sn = sn;
        this.roomTypeId = roomTypeId;
        this.floorId = floorId;
        this.status = status;
        this.remark = remark;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getRoomTypeId() {
        return roomTypeId;
    }

    public void setRoomTypeId(String roomTypeId) {
        this.roomTypeId = roomTypeId;
    }

    public Integer getFloorId() {
        return floorId;
    }

    public void setFloorId(Integer floorId) {
        this.floorId = floorId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


    @Override
    public String toString() {
        return "room{" +
                "id=" + id +
                ", photo='" + photo + '\'' +
                ", sn='" + sn + '\'' +
                ", roomTypeId='" + roomTypeId + '\'' +
                ", floorId=" + floorId +
                ", status=" + status +
                ", remark='" + remark + '\'' +
                '}';
    }
}
